package com.ruoyi.service.entity.order;

import com.ruoyi.service.domain.ServiceItems;
import com.ruoyi.service.entity.item.PCComboVO;

import java.util.List;

/**
 * 服务项目套餐关系体
 *
 * @author ZDL
 */
@lombok.Data
public class PCItemPayVO {

    /**
     * 服务项目的id
     */
    private Long id;
    /**
     * 服务项目名称
     */
    private String name;

    private String code;//启用，停用
    private String status;//启用，停用

    /**
     * 规格数组/套餐数组
     */
    private List<PCComboVO> specifications;

    public PCItemPayVO(ServiceItems itemNode) {
        this.id = itemNode.getItemId();
        this.name = itemNode.getItemName();
        if ("0".equals(itemNode.getItemUseFlag())){
            this.code = "normal";
            this.status = "启用";
        }else {
            this.code = "stop";
            this.status = "停用";
        }
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    public String getName() { return name; }
    public void setName(String value) { this.name = value; }

    public List<PCComboVO> getSpecifications() {
        return specifications;
    }

    public void setSpecifications(List<PCComboVO> specifications) {
        this.specifications = specifications;
    }

    public PCItemPayVO() {
    }

}
